import { ref,computed } from 'vue'


export default function () {
        //数据
        let num = ref(0)
        let bigNum = computed(()=>{
                return num.value * 10
        })
        //方法
        function plusFun() {
                num.value += 1
        }
        //向外部提供东西
        return { num, plusFun,bigNum }
}

